#ifndef _QUAD_H
#define _QUAD_H

template <class type>
struct Quad 
{

    type v[4]; // Array access useful in for loops
	
	Quad()
	{
		v[0] = 0;
		v[1] = 0;
		v[2] = 0;
		v[3] = 0;
	}

	~Quad()
	{
		delete v[0];
		v[0] = 0;
		delete v[1];
		v[1] = 0;
		delete v[2];
		v[2] = 0;
		delete v[3];
		v[3] = 0;
	}

	Quad( type v0, type v1, type v2, type v3 )
	{
		v[0] = v0;
		v[1] = v1;
		v[2] = v2;
		v[3] = v3;
	}
};

#endif //_QUAD_H